<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>家居家具管理系统</title>

    <!-- begin::global styles -->
    <link rel="stylesheet" href="${APP_PATH}/assets/vendors/bundle.css" type="text/css">
    <!-- end::global styles -->


    <!-- begin::dataTable -->
    <link rel="stylesheet" href="${APP_PATH}/assets/vendors/dataTable/responsive.bootstrap.min.css" type="text/css">
    <!-- end::dataTable -->

    <!-- begin::custom styles -->
    <link rel="stylesheet" href="${APP_PATH}/assets/css/app.css" type="text/css">
    <link rel="stylesheet" href="${APP_PATH}/assets/css/custom.css" type="text/css">
    <!-- end::custom styles -->

</head>
<body>

<!-- begin::page loader-->
<div class="page-loader">
    <div class="page-loader">
        <div class="spinner-border text-danger"></div>
        <span>加载中 ...</span>
    </div>
</div>
<!-- end::page loader -->

<!-- begin::navigation -->
<jsp:include page="/WEB-INF/jsps/Manager/common/navigation.jsp"/>
<!-- end::navigation -->

<!-- begin::top -->
<jsp:include page="/WEB-INF/jsps/Manager/common/top.jsp"/>
<!-- end::top -->

<!-- begin::main content -->
<main class="main-content">

    <div class="container-fluid">

        <!-- begin::page header -->
        <div class="page-header d-md-flex justify-content-between align-items-center">
            <h4>物流查询</h4>
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb m-t-0">
                    <li class="breadcrumb-item"><a href="${APP_PATH}/toManager">首页</a></li>
                    <li class="breadcrumb-item active" aria-current="page">物流查询</li>
                </ol>
            </nav>
        </div>
        <!-- end::page header -->



        <div class="card">
            <div class="card-body">
                <table id="example1" class="table table-striped table-bordered">
                    <thead>
                    <tr>
                        <th>物流公司</th>
                        <th>快递单号</th>
                        <th>订单号</th>
                        <th>发货时间</th>
                        <th>收货人</th>
                        <th>联系方式</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>

                    <c:forEach items="${requestScope.orderInfoList}" var="orderInfo">
                        <tr>
                            <td>${orderInfo.logisticsInfo.express.ename}</td>
                            <td>${orderInfo.logisticsInfo.logistics.lnum}</td>
                            <td>${orderInfo.order.onum}</td>
                            <td>${orderInfo.logisticsInfo.logistics.ltime}</td>
                            <td>${orderInfo.addressInfo.address.consignee}</td>
                            <td>${orderInfo.addressInfo.address.cphone}</td>
                            <td><button type="button" class="btn btn-primary btn-uppercase" onclick="toLogistiscDetail(${orderInfo.order.oid})">查看详情</button></td>
                        </tr>
                    </c:forEach>

                    </tbody>
                    <tfoot>
                    <tr>
                        <th>物流公司</th>
                        <th>快递单号</th>
                        <th>订单号</th>
                        <th>发货时间</th>
                        <th>收货人</th>
                        <th>联系方式</th>
                        <th>操作</th>
                    </tr>
                    </tfoot>
                </table>
            </div>
        </div>


        <!-- begin::bottom -->
        <div class="card-group">
            <jsp:include page="/WEB-INF/jsps/Manager/common/bottom.jsp"/>
        </div>
        <!-- end::bottom -->

    </div>



</main>
<!-- end::main content -->


<!-- begin::global scripts -->
<script src="${APP_PATH}/assets/vendors/bundle.js"></script>
<!-- end::global scripts -->

<!-- begin::dataTable -->
<script src="${APP_PATH}/assets/vendors/dataTable/jquery.dataTables.min.js"></script>
<script src="${APP_PATH}/assets/vendors/dataTable/dataTables.bootstrap4.min.js"></script>
<script src="${APP_PATH}/assets/vendors/dataTable/dataTables.responsive.min.js"></script>
<script src="${APP_PATH}/assets/js/examples/datatable.js"></script>
<!-- end::dataTable -->

<!-- begin::custom scripts -->
<script src="${APP_PATH}/assets/js/custom.js"></script>
<script src="${APP_PATH}/assets/js/app.js"></script>
<!-- end::custom scripts -->


</body>
</html>

<script>
    function toLogistiscDetail(oid) {
        window.location.href = "${APP_PATH}/toLogistics_Detail?oid="+oid;
    }
</script>


